package com.springboot.framework.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BaseException extends RuntimeException{
    private int code;
    private String message;

    public BaseException(){}


    public BaseException(String message,int code){
        this.message = message;
        this.code = code;
    }

    public BaseException(String message){
        this.message = message;
        this.code = 400;
    }
}
